﻿using ARchGL.Platform.Electrocar.Application.Dto;
using ARchGL.Platform.Electrocar.Core;
using AutoMapper;
using System;
using System.Collections.Generic;
using System.Text;

namespace ARchGL.Platform.Electrocar.Application
{
    public class CustomDtoMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap<Accounts, AccountDto>();
            configuration.CreateMap<AccountDto, Accounts>();

            configuration.CreateMap<Departments, DepartmentsDto>();
            configuration.CreateMap<DepartmentsDto, Departments>();

            configuration.CreateMap<ProjectUsers, ProjectUsersDto>();
            configuration.CreateMap<ProjectUsersDto, ProjectUsers>();

            configuration.CreateMap<Companys, CompanysDto>();
            configuration.CreateMap<CompanysDto, Companys>();

            configuration.CreateMap<CarBodys, CarBodysDto>();
            configuration.CreateMap<CarBodysDto, CarBodys>();

            configuration.CreateMap<Projects, ProjectsTemplateDto>();
            configuration.CreateMap<Projects, ProjectsDto>();
            configuration.CreateMap<ProjectsDto, Projects>();

            configuration.CreateMap<FileDirectorys, FileDirectorysDto>();
            configuration.CreateMap<FileDirectorysDto, FileDirectorys>();
            
            configuration.CreateMap<Files, FilesDto>();
            configuration.CreateMap<FilesDto, Files>();

            configuration.CreateMap<ModelDirectorysDto, ModelDirectorys>();
            configuration.CreateMap<ModelDirectorys, ModelDirectorysDto>();

            configuration.CreateMap<ModelPropertysDto, ModelPropertys>();
            configuration.CreateMap<ModelPropertys, ModelPropertysDto>();

            configuration.CreateMap<ModelAssemblysDto, ModelAssemblys>();
            configuration.CreateMap<ModelAssemblys, ModelAssemblysDto>();
        }
    }
}
